package com.example.apidbtest;


import lombok.Data;

import java.util.List;

/**
 * @author lanyanhua
 * @date 2025年06月16日 22:12
 * @description
 */
public class R<T> {
//    {"code":200,"msg":"成功","data":null}
    private int code;
    private String msg;
    private List<T> data;

    public R(List<T> data) {
        this.code = 200;
        this.msg = "成功";
        this.data = data;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }
}
